-- GENERATED SPELL FOR [Drakkari Guardian] --


function spell0_26620(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26620', 10268, 1)
end

function spell1_26620(pUnit, Event) --@Heal,Self--
pUnit:FullCastSpellOnTarget(47668,pUnit)
pUnit:RegisterEvent('Sorts_26620', 500, 1)
end

function spell2_26620(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26620', 8257, 1)
end

function Sorts_26620(pUnit, Event)
local choix_sorts_26620 = math.random(0, 2)
if choix_sorts_26620 == 0 then
pUnit:RegisterEvent('spell0_26620', 1, 1)
end
if choix_sorts_26620 == 1 then
pUnit:RegisterEvent('spell1_26620', 1, 1)
end
if choix_sorts_26620 == 2 then
pUnit:RegisterEvent('spell2_26620', 1, 1)
end
end

function mob26620_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26620', math.random(1500, 3000), 1)
end

function mob26620_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26620_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26620_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26620, 1, 'mob26620_Action')
RegisterUnitEvent(26620, 2, 'mob26620_Leave')
RegisterUnitEvent(26620, 3, 'mob26620_Kill')
RegisterUnitEvent(26620, 4, 'mob26620_Die')
